<?php
//var_dump($_FILES);
if(empty($_FILES)){
    echo '快上传';
}else{
  echo move_uploaded_file($_FILES['pic']['tmp_name'],'./'.$_FILES['pic']['name'])?'ok':'error';
}

